package inputHandlers;

import java.awt.event.MouseEvent;

import javax.swing.event.MouseInputListener;

import arcturus.GameLogic;

public class mouseClickHandler implements MouseInputListener{

	private GameLogic callback;
	//====================================
	//====================================
	//====================================
	
	
	public mouseClickHandler(GameLogic callback){
		this.callback = callback;		
	}
	//====================================
		//====================================
		//====================================
	private void handleMouseEvent(MouseEvent arg0){
		System.out.println(arg0.getButton());
		this.callback.mouseEventPreformed(arg0);		
	}
	
	//====================================
		//====================================
		//====================================
	
	@Override
	public void mouseClicked(MouseEvent arg0) {
		this.handleMouseEvent(arg0);
		
		
	}

	@Override
	public void mouseEntered(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseDragged(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseMoved(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}
	

	
	
}
